@import url('@/assets/css/theme.css');

.container {
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 60px);
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%));
}

/* 容器背景渐变 */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(219, 39, 119, 0.05) 100%);
  z-index: -1;
}

/* 浮动形状装饰 */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
  top: -150px;
  right: -100px;
  animation: float 15s infinite ease-in-out;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  bottom: -50px;
  left: -50px;
  animation: float 12s infinite ease-in-out reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 60%;
  animation: spin 20s infinite linear;
}

/* 返回首页按钮 */
.back-to-home {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.home-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 添加按钮 */
.add-button {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.add-btn {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
  transition: all 0.3s ease;
}

.add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

/* 面板卡片 */
.order-card {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.order-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  color: #333;
}

/* 搜索表单 */
.search-form {
  display: flex;
  flex-wrap: wrap;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.search-form:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 分页 */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* 对话框 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 按钮样式 */
.el-button {
  transition: all 0.3s ease;
}

.el-button:hover {
  transform: translateY(-2px);
}

.el-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.el-button--danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
}

/* 表格样式 */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background-color: #f5f7fa !important;
  color: #333;
  font-weight: bold;
}

/* 标签样式 */
.el-tag {
  border-radius: 12px;
  padding: 0 8px;
}

/* 动画效果 */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
